package com.dragon.pear.modules.sample.web.model.params.create;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-10 04:10
 * Use for: 商品 数据创建请求参数
 * Explain:
 * 
 */
@Schema(description = "商品 数据创建参数")
public class SmpGoodsCreateParam {
    @Schema(description = "", example = "1")
    private long id;
    @Schema(description = "", example = "1")
    private long code;
    @Schema(description = "", example = "字符串")
    private String createdBy;
    @Schema(description = "", example = "1")
    private long createdOn;
    @Schema(description = "", example = "1")
    private int isDeleted;
    @Schema(description = "", example = "字符串")
    private String updatedBy;
    @Schema(description = "", example = "1")
    private long updatedOn;
    @Schema(description = "", example = "字符串")
    private String description;
    @Schema(description = "", example = "字符串")
    private String image;
    @Schema(description = "", example = "1")
    private Double price;
    @Schema(description = "", example = "1")
    private Long stock;
    @Schema(description = "", example = "字符串")
    private String title;

    // 无参构造方法
    public SmpGoodsCreateParam() {
    }

    // 全参数构造方法
    public SmpGoodsCreateParam(long id, long code, String createdBy, long createdOn, int isDeleted, String updatedBy, long updatedOn, String description, String image, Double price, Long stock, String title) {
        this.id = id;
        this.code = code;
        this.createdBy = createdBy;
        this.createdOn = createdOn;
        this.isDeleted = isDeleted;
        this.updatedBy = updatedBy;
        this.updatedOn = updatedOn;
        this.description = description;
        this.image = image;
        this.price = price;
        this.stock = stock;
        this.title = title;
    }

    // 全参数create生成器
    public static SmpGoodsCreateParam create(long id, long code, String createdBy, long createdOn, int isDeleted, String updatedBy, long updatedOn, String description, String image, Double price, Long stock, String title) {
        return new SmpGoodsCreateParam(id, code, createdBy, createdOn, isDeleted, updatedBy, updatedOn, description, image, price, stock, title);
    }

    // 全参数of生成器
    public static SmpGoodsCreateParam of(long id, long code, String createdBy, long createdOn, int isDeleted, String updatedBy, long updatedOn, String description, String image, Double price, Long stock, String title) {
        return new SmpGoodsCreateParam(id, code, createdBy, createdOn, isDeleted, updatedBy, updatedOn, description, image, price, stock, title);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public SmpGoodsCreateParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public SmpGoodsCreateParam setCode(long code) {
        this.code = code;
        return this;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public SmpGoodsCreateParam setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
        return this;
    }

    public long getCreatedOn() {
        return createdOn;
    }

    public SmpGoodsCreateParam setCreatedOn(long createdOn) {
        this.createdOn = createdOn;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public SmpGoodsCreateParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public SmpGoodsCreateParam setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
        return this;
    }

    public long getUpdatedOn() {
        return updatedOn;
    }

    public SmpGoodsCreateParam setUpdatedOn(long updatedOn) {
        this.updatedOn = updatedOn;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public SmpGoodsCreateParam setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getImage() {
        return image;
    }

    public SmpGoodsCreateParam setImage(String image) {
        this.image = image;
        return this;
    }

    public Double getPrice() {
        return price;
    }

    public SmpGoodsCreateParam setPrice(Double price) {
        this.price = price;
        return this;
    }

    public Long getStock() {
        return stock;
    }

    public SmpGoodsCreateParam setStock(Long stock) {
        this.stock = stock;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public SmpGoodsCreateParam setTitle(String title) {
        this.title = title;
        return this;
    }

    // endregion Getter和Setter方法
}
